Skip to content

fix(polymarket): route backtest history to trading-serenai for issue #68#69

Merged
taariq merged 5 commits intomainfrom
fix/polymarket-publisher-routing
Mar 6, 2026
Merged

fix(polymarket): route backtest history to trading-serenai for issue #68#69
taariq merged 5 commits intomainfrom
fix/polymarket-publisher-routing

Conversation

@taariq
Copy link
Contributor

@taariq taariq commented Mar 6, 2026

Summary

  • replace all Polymarket strategy clob_history_url defaults from missing /prices-history to supported /trades publisher routes
  • add runtime compatibility shims that auto-map legacy .../prices-history configs to .../trades
  • make backtest history parsing tolerant of both legacy history payloads and trade-list payloads (trades, data, items, results)
  • keep strict Seren publisher policy enforcement intact while allowing live backtests to proceed with available endpoints
  • update maker-rebate smoke assertion for the corrected clob_history_url

Why

Issue #68 reports that polymarket-data/prices-history is not exposed and returns 404, breaking live-data backtests. This PR removes that dependency and routes all backtest history requests to supported publisher endpoints.

Validation

  • PYTHONDONTWRITEBYTECODE=1 pytest -q polymarket/maker-rebate-bot/tests/test_smoke.py
  • PYTHONDONTWRITEBYTECODE=1 pytest -q polymarket/paired-market-basis-maker/tests/test_smoke.py
  • PYTHONDONTWRITEBYTECODE=1 pytest -q polymarket/high-throughput-paired-basis-maker/tests/test_smoke.py
  • PYTHONDONTWRITEBYTECODE=1 pytest -q polymarket/liquidity-paired-basis-maker/tests/test_smoke.py
  • python3 -m py_compile polymarket/maker-rebate-bot/scripts/agent.py polymarket/paired-market-basis-maker/scripts/agent.py polymarket/high-throughput-paired-basis-maker/scripts/agent.py polymarket/liquidity-paired-basis-maker/scripts/agent.py

Fixes #68

taariq added 5 commits March 5, 2026 13:44
…her-routing

# Conflicts:
#	polymarket/liquidity-paired-basis-maker/config.example.json
#	polymarket/liquidity-paired-basis-maker/scripts/agent.py
#	polymarket/maker-rebate-bot/config.example.json
#	polymarket/maker-rebate-bot/scripts/agent.py
#	polymarket/maker-rebate-bot/tests/test_smoke.py
@taariq taariq changed the title Fix Polymarket backtest history routing for issue #68 fix(polymarket): route backtest history to trading-serenai for issue #68 Mar 6, 2026
@taariq taariq merged commit 2a1985f into main Mar 6, 2026
2 of 3 checks passed
@taariq taariq deleted the fix/polymarket-publisher-routing branch March 6, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

polymarket-data publisher missing /prices-history endpoint breaks backtest mode

1 participant